home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / Python.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-10  |  2.7 KB  |  126 lines

  1. #ifndef Py_PYTHON_H
  2. #define Py_PYTHON_H
  3. /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
  4.  
  5. /* Enable compiler features; switching on C lib defines doesn't work
  6.    here, because the symbols haven't necessarily been defined yet. */
  7. #ifndef _GNU_SOURCE
  8. # define _GNU_SOURCE    1
  9. #endif
  10.  
  11. /* Include nearly all Python header files */
  12.  
  13. #include "patchlevel.h"
  14. #include "config.h"
  15.  
  16. /* config.h may or may not define DL_IMPORT */
  17. #ifndef DL_IMPORT    /* declarations for DLL import/export */
  18. #define DL_IMPORT(RTYPE) RTYPE
  19. #endif
  20. #ifndef DL_EXPORT    /* declarations for DLL import/export */
  21. #define DL_EXPORT(RTYPE) RTYPE
  22. #endif
  23.  
  24. #ifdef SYMANTEC__CFM68K__
  25. #define UsingSharedLibs
  26. #endif
  27.  
  28. #if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
  29. #define _SGI_MP_SOURCE
  30. #endif
  31.  
  32. #include <stdio.h>
  33. #include <string.h>
  34. #include <errno.h>
  35. #ifdef HAVE_STDLIB_H
  36. #include <stdlib.h>
  37. #endif
  38. #ifdef _AMIGA
  39. # ifdef HAVE_FCNTL_H
  40. #  include <fcntl.h>
  41. # endif
  42. # if !defined(AMITCP) && !defined(INET225)
  43. #  include <stat.h>
  44. typedef unsigned long pid_t;
  45. # endif
  46. #endif
  47.  
  48. #include "myproto.h"
  49.  
  50. #ifdef SYMANTEC__CFM68K__
  51. #pragma lib_export on
  52. #endif
  53.  
  54. #include "object.h"
  55. #include "objimpl.h"
  56.  
  57. #include "pydebug.h"
  58.  
  59. #include "unicodeobject.h"
  60. #include "intobject.h"
  61. #include "longobject.h"
  62. #include "floatobject.h"
  63. #ifndef WITHOUT_COMPLEX
  64. #include "complexobject.h"
  65. #endif
  66. #include "rangeobject.h"
  67. #include "stringobject.h"
  68. #include "bufferobject.h"
  69. #include "tupleobject.h"
  70. #include "listobject.h"
  71. #include "dictobject.h"
  72. #include "methodobject.h"
  73. #include "moduleobject.h"
  74. #include "funcobject.h"
  75. #include "classobject.h"
  76. #include "fileobject.h"
  77. #include "cobject.h"
  78. #include "traceback.h"
  79. #include "sliceobject.h"
  80.  
  81. #include "codecs.h"
  82. #include "pyerrors.h"
  83. #include "mymalloc.h"
  84.  
  85. #include "pystate.h"
  86.  
  87. #include "modsupport.h"
  88. #include "ceval.h"
  89. #include "pythonrun.h"
  90. #include "sysmodule.h"
  91. #include "intrcheck.h"
  92. #include "import.h"
  93.  
  94. #include "abstract.h"
  95.  
  96. #define PyArg_GetInt(v, a)    PyArg_Parse((v), "i", (a))
  97. #define PyArg_NoArgs(v)        PyArg_Parse(v, "")
  98.  
  99. /* Convert a possibly signed character to a nonnegative int */
  100. /* XXX This assumes characters are 8 bits wide */
  101. #ifdef __CHAR_UNSIGNED__
  102. #define Py_CHARMASK(c)        (c)
  103. #else
  104. #define Py_CHARMASK(c)        ((c) & 0xff)
  105. #endif
  106.  
  107. #include "pyfpe.h"
  108.  
  109. /* These definitions much match corresponding definitions in graminit.h.
  110.    There's code in compile.c that checks that they are the same. */
  111. #define Py_single_input 256
  112. #define Py_file_input 257
  113. #define Py_eval_input 258
  114.  
  115. #ifdef _GNU_PTH
  116. /* GNU pth user-space thread support */
  117. #include <pth.h>
  118. #endif
  119.  
  120. /* Include the 'missing' function prototypes  (IJ 13-Jan-1998) */
  121. #ifdef _AMIGA
  122. #include "protos.h"
  123. #endif
  124.  
  125. #endif /* !Py_PYTHON_H */
  126.